//
//  XMPayAccountBindViewController.m
//  MyNewProject
//
//  Created by ZhangYuan on 2019/1/30.
//  Copyright © 2019年 sun. All rights reserved.
//

#import "XMPayAccountBindViewController.h"

@interface XMPayAccountBindViewController ()
@property(nonatomic , retain)UITextField * userName;//
@property(nonatomic , retain)UITextField * aliPyAccouont;//
@property(nonatomic , retain)UIButton * makeSure;//确认支付
@end

@implementation XMPayAccountBindViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.gk_navigationBar.hidden = NO;
    self.gk_navTitle = self.payType == 1?@"支付宝绑定":@"微信绑定";
    self.view.backgroundColor = BackColor;
    
    UIView * whiteView = [[UIView alloc]initWithFrame:CGRectMake(0, (IS_IPhoneX_All?88:64) + 5, SCREEN_WIDTH, 50)];
    whiteView.backgroundColor  = [UIColor whiteColor];
    [self.view addSubview:whiteView];
    
    UIView * whiteView1 = [[UIView alloc]initWithFrame:CGRectMake(0, (IS_IPhoneX_All?88:64) + 60, SCREEN_WIDTH, 50)];
    whiteView1.backgroundColor  = [UIColor whiteColor];
    [self.view addSubview:whiteView1];
    
    [self.view addSubview:self.userName];
    [self.view addSubview:self.aliPyAccouont];
    [self.view addSubview:self.makeSure];
}
-(void)makeSurePress{
    //self.userName.text   真实姓名
    //self.aliPyAccouont.text   支付宝账户
}
-(UITextField *)userName{
    if (!_userName) {
        _userName = [[UITextField alloc]initWithFrame:CGRectMake(20, (IS_IPhoneX_All?88:64) + 5, SCREEN_WIDTH - 40, 50)];
        _userName.placeholder = @"请输入真实姓名";
    }
    return _userName;
}
-(UITextField *)aliPyAccouont{
    if (!_aliPyAccouont) {
        _aliPyAccouont = [[UITextField alloc]initWithFrame:CGRectMake(20, (IS_IPhoneX_All?88:64) + 60, SCREEN_WIDTH - 40 , 50)];
        _aliPyAccouont.placeholder = @"请输入支付宝账户";
    }
    return _aliPyAccouont;
}
-(UIButton *)makeSure{
    if (!_makeSure) {
        _makeSure = [UIButton buttonWithType:UIButtonTypeCustom];
        _makeSure.frame = CGRectMake(20, 300, SCREEN_WIDTH - 40, 40);
        _makeSure.backgroundColor = [UIColor redColor];
        _makeSure.layer.cornerRadius = 20;
        _makeSure.clipsToBounds = YES;
        [_makeSure setTitle:@"确认" forState:UIControlStateNormal];
        [_makeSure setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
        [_makeSure addTarget:self action:@selector(makeSurePress) forControlEvents:UIControlEventTouchUpInside];
    }
    return _makeSure;
}
@end
